﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Model
{
    /// <summary>
    /// Author: Sissi Zeng
    /// Data:2012-8-7 19:00
    /// </summary>
    [DataContract]
    public class Teacher
    {
        /// <summary>
        /// Field
        /// </summary>
        [DataMember]
        private int _TeacherId;
         [DataMember]
        private string _TeacherName;
         [DataMember]
        private string _TeacherGender;
         [DataMember]
        private Department _Department;

        /// <summary>
        /// Constructor
        /// </summary>
        public Teacher(int id = 0, string Name = null, string Gender = null, Department department=null)
        {
            _TeacherId = id;
            _TeacherName = Name;
            _TeacherGender = Gender;
            _Department = department;


        } 
       

        /// <summary>
        /// TeacherId Primary Key
        /// </summary>
         [DataMember]
        public int TeacherId
        {
            get { return _TeacherId; }
            set { _TeacherId = value; }
        }
        
        /// <summary>
        /// TeahcerName
        /// </summary>
         [DataMember]
        public string TeacherName
        {
            get { return _TeacherName; }
            set { _TeacherName = value; }
        }
        
        /// <summary>
        /// TeacherGender
         [DataMember]
        public string TeacherGender
        {
            get { return _TeacherGender; }
            set { _TeacherGender = value; }
        }

         [DataMember]
        public Department DepartMent
        {
            get { return _Department; }
            set { _Department = value; }
        }
        /// <summary>
        /// DepartmentId
        /// </summary>
        //public int DepartmentId
        //{
        //    get { return _DepartmentId; }
        //    set { _DepartmentId = value; }
        //}
        
    }
}
